package composite;

public abstract class MenuComponent {
    // 下列用于操作组件
    public void add(MenuComponent menuComponent) { // 添加组件
        throw new UnsupportedOperationException();
    }
    public void remove(MenuComponent menuComponent) { // 删除组件
        throw new UnsupportedOperationException();
    }
    // 下列所有方法用于操作组件内容
    public String getName() {
        throw new UnsupportedOperationException();
    }
    public void print(String space) {
        throw new UnsupportedOperationException();
    }
}
